home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / verdll / about3.frm next >
Text File  |  1994-10-15  |  6KB  |  213 lines

  1. VERSION 2.00
  2. Begin Form About2 
  3.    BackColor       =   &H00FFFFFF&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "About"
  6.    ControlBox      =   0   'False
  7.    FontBold        =   -1  'True
  8.    FontItalic      =   -1  'True
  9.    FontName        =   "MS Sans Serif"
  10.    FontSize        =   8.25
  11.    FontStrikethru  =   0   'False
  12.    FontUnderline   =   0   'False
  13.    ForeColor       =   &H00000000&
  14.    Height          =   3615
  15.    Icon            =   ABOUT3.FRX:0000
  16.    Left            =   1395
  17.    LinkMode        =   1  'Source
  18.    LinkTopic       =   "Form1"
  19.    MaxButton       =   0   'False
  20.    MinButton       =   0   'False
  21.    ScaleHeight     =   3210
  22.    ScaleWidth      =   5190
  23.    Top             =   1500
  24.    Width           =   5310
  25.    Begin Timer Timer1 
  26.       Interval        =   2000
  27.       Left            =   4680
  28.       Top             =   1920
  29.    End
  30.    Begin CommandButton Command1 
  31.       Cancel          =   -1  'True
  32.       Caption         =   "OK"
  33.       Default         =   -1  'True
  34.       Height          =   375
  35.       Left            =   2040
  36.       TabIndex        =   4
  37.       Top             =   2640
  38.       Width           =   1095
  39.    End
  40.    Begin Image Image3 
  41.       Height          =   480
  42.       Left            =   0
  43.       Picture         =   ABOUT3.FRX:0302
  44.       Top             =   1200
  45.       Width           =   480
  46.    End
  47.    Begin Label Lbl_InfoValues 
  48.       Height          =   615
  49.       Left            =   3000
  50.       TabIndex        =   6
  51.       Top             =   1920
  52.       Width           =   1410
  53.    End
  54.    Begin Label Label5 
  55.       Alignment       =   2  'Center
  56.       Caption         =   "John De Palma on CompuServe 76076,571"
  57.       Height          =   255
  58.       Left            =   240
  59.       TabIndex        =   5
  60.       Top             =   1320
  61.       Width           =   4695
  62.    End
  63.    Begin Image Image2 
  64.       Height          =   480
  65.       Left            =   0
  66.       Picture         =   ABOUT3.FRX:0604
  67.       Top             =   600
  68.       Width           =   480
  69.    End
  70.    Begin Image Image1 
  71.       Height          =   480
  72.       Left            =   0
  73.       Picture         =   ABOUT3.FRX:0906
  74.       Top             =   0
  75.       Width           =   480
  76.    End
  77.    Begin Line Line1 
  78.       X1              =   600
  79.       X2              =   4800
  80.       Y1              =   1800
  81.       Y2              =   1800
  82.    End
  83.    Begin Label lbl_Title 
  84.       Alignment       =   2  'Center
  85.       Caption         =   "Title"
  86.       FontBold        =   -1  'True
  87.       FontItalic      =   0   'False
  88.       FontName        =   "BodoniPoster"
  89.       FontSize        =   22.5
  90.       FontStrikethru  =   0   'False
  91.       FontUnderline   =   0   'False
  92.       Height          =   615
  93.       Left            =   720
  94.       TabIndex        =   1
  95.       Top             =   120
  96.       Width           =   4095
  97.    End
  98.    Begin Label lbl_Version 
  99.       Alignment       =   2  'Center
  100.       BackColor       =   &H00FFFFFF&
  101.       BackStyle       =   0  'Transparent
  102.       Caption         =   "Version  6.8.94"
  103.       FontBold        =   -1  'True
  104.       FontItalic      =   0   'False
  105.       FontName        =   "MS Sans Serif"
  106.       FontSize        =   13.5
  107.       FontStrikethru  =   0   'False
  108.       FontUnderline   =   0   'False
  109.       ForeColor       =   &H00800000&
  110.       Height          =   330
  111.       Left            =   600
  112.       TabIndex        =   0
  113.       Top             =   720
  114.       Width           =   4335
  115.    End
  116.    Begin Label Lbl_Info 
  117.       Height          =   615
  118.       Left            =   720
  119.       TabIndex        =   2
  120.       Top             =   1920
  121.       Width           =   1935
  122.    End
  123.    Begin Label Label4 
  124.       Alignment       =   2  'Center
  125.       Caption         =   "LearnWare ⌐ 1994"
  126.       Height          =   255
  127.       Left            =   240
  128.       TabIndex        =   3
  129.       Top             =   1560
  130.       Width           =   4935
  131.    End
  132. End
  133. 'this stuff from AboutBox of Iconwrks
  134. DefInt A-Z
  135. Declare Function GetFreeSpace Lib "Kernel" (ByVal wFlags) As Long
  136. Declare Function GetWinFlags Lib "Kernel" () As Long
  137. Const WF_STANDARD = &H10
  138. Const WF_ENHANCED = &H20
  139. Const WF_80x87 = &H400
  140.  
  141. Sub Command1_Click ()
  142.     'Cancel About form
  143.     About2.Visible = False
  144. End Sub
  145.  
  146. Sub Command1_LostFocus ()
  147.     About2.Visible = False
  148. End Sub
  149.  
  150. Sub Form_Load ()
  151. Dim WinFlags As Long
  152. Dim Mode As String, Processor As String
  153. Dim CRLF As String
  154. CRLF = Chr$(13) + Chr$(10)
  155.     
  156.     WinFlags = GetWinFlags()
  157.     If WinFlags And WF_ENHANCED Then
  158.         Mode = "386 Enhanced Mode"
  159.     Else
  160.         Mode = "Standard Mode"
  161.     End If
  162.     
  163.     Lbl_Info.Caption = Mode + CRLF + "Free Memory:" + CRLF + "Math Co-processor:"
  164.     
  165.     If WinFlags And WF_80x87 Then
  166.         Processor = "Present"
  167.     Else
  168.         Processor = "None"
  169.     End If
  170.     
  171.     Lbl_InfoValues.Caption = CRLF + Format$(GetFreeSpace(0) \ 1024) + " KB" + CRLF + Processor
  172.     'Center form
  173.     Left = (Screen.Width - Width) / 2
  174.     Top = (Screen.Height - Height) / 2
  175.     
  176.     'Place three traffic lights
  177.     Image1.Left = 0
  178.     Image1.Top = 0
  179.     Image2.Left = 0
  180.     Image2.Top = 0
  181.     Image3.Left = 0
  182.     Image3.Top = 0
  183.  
  184.     'Make first icon visible
  185.     Image1.Visible = True
  186.     Image2.Visible = False
  187.     Image3.Visible = False
  188.  
  189.     lbl_Title.Caption = "Picture Show"
  190.     lbl_Version.Caption = "Version 6.13.94"
  191.     Me.Caption = "About..."
  192. End Sub
  193.  
  194. Sub Timer1_Timer ()
  195.         
  196.         If Image1.Visible = True Then
  197.             Image1.Visible = False
  198.             Image2.Visible = True
  199.             Image3.Visible = False
  200.         ElseIf Image2.Visible = True Then
  201.             Image2.Visible = False
  202.             Image3.Visible = True
  203.             Image1.Visible = False
  204.         ElseIf Image3.Visible = True Then
  205.             Image1.Visible = True
  206.             Image2.Visible = False
  207.             Image3.Visible = False
  208.         Else
  209.         End If
  210.  
  211. End Sub
  212.  
  213.